<?php

$finalOutput = array(
    "success" => $success,
    "result" => $output->getRawValue(),
);

echo json_encode($finalOutput);
